package com.redwine.app.net.responses;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * 详情页面
 * 作者：gassion on 17/8/12 20:35
 * 最可怕的敌人，就是没有坚强的信念。
 */
public class RedwineDetailResponse extends BaseResponse {

    /**
     * data : {"deal":{"purchase_cout":"3","publish_count":"0"},"user_info":{"uid":"1","country":"86","mobile":"18634680997","nickname":"mustang","password":"976ffd1c04d75e5e17ad5e95db77384a","salt":"cc9f09","sex":"1","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","jifen":"0","groupid":"1","area_id":"0","create_time":"2017-03-15 14:40:28","update_time":"2017-04-06 13:13:48","status":"1","company":"未填写公司名称"},"publish":{"id":"3","title":"采购标题","num":"2","price":"2.00","city":"采购所在地","invoice":"1","anonymous":"1","content":"更多要求","pic":"http://face.com/image/hongjiu/201708/04/231737425948.png,http://face.com/image/hongjiu/201708/04/231737604010.png","uid":"1","date":"2017-08-04 23:17:37.000000","status":"5","remain":"-5天-24小时-34分","remain_before":"11天23小时34分"},"quote":[{"id":"2","pic":"http://face.com/image/hongjiu/201708/06/215352681206.png,http://face.com/image/hongjiu/201708/06/215352217635.png","price":"3.00","msg":"baojia","city":"采购所在地11","publish_id":"3","date":"2017-08-10 18:07:14.000000","uid":"1","status":"1","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","nickname":"mustang","mobile":"18634680997"}],"quote_count":"1","supplier_status":"1","buyer_status":"1","is_collectionis":"1"}
     */

    private DataEntity data;

    public DataEntity getData() {
        return data;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public static class DataEntity {
        /**
         * deal : {"purchase_cout":"3","publish_count":"0"}
         * user_info : {"uid":"1","country":"86","mobile":"18634680997","nickname":"mustang","password":"976ffd1c04d75e5e17ad5e95db77384a","salt":"cc9f09","sex":"1","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","jifen":"0","groupid":"1","area_id":"0","create_time":"2017-03-15 14:40:28","update_time":"2017-04-06 13:13:48","status":"1","company":"未填写公司名称"}
         * publish : {"id":"3","title":"采购标题","num":"2","price":"2.00","city":"采购所在地","invoice":"1","anonymous":"1","content":"更多要求","pic":"http://face.com/image/hongjiu/201708/04/231737425948.png,http://face.com/image/hongjiu/201708/04/231737604010.png","uid":"1","date":"2017-08-04 23:17:37.000000","status":"5","remain":"-5天-24小时-34分","remain_before":"11天23小时34分"}
         * quote : [{"id":"2","pic":"http://face.com/image/hongjiu/201708/06/215352681206.png,http://face.com/image/hongjiu/201708/06/215352217635.png","price":"3.00","msg":"baojia","city":"采购所在地11","publish_id":"3","date":"2017-08-10 18:07:14.000000","uid":"1","status":"1","avatar":"http://face.com/image/avatar/201704/06/000537584477.png","nickname":"mustang","mobile":"18634680997"}]
         * quote_count : 1
         * supplier_status : 1
         * buyer_status : 1
         * is_collectionis : 1
         */

        private DealEntity deal;
        private UserInfoEntity user_info;
        private PublishEntity publish;
        private String quote_count;
        private String supplier_status;
        private String buyer_status;
        private String is_collectionis;
        private List<QuoteEntity> quote;

        public DealEntity getDeal() {
            return deal;
        }

        public void setDeal(DealEntity deal) {
            this.deal = deal;
        }

        public UserInfoEntity getUser_info() {
            return user_info;
        }

        public void setUser_info(UserInfoEntity user_info) {
            this.user_info = user_info;
        }

        public PublishEntity getPublish() {
            return publish;
        }

        public void setPublish(PublishEntity publish) {
            this.publish = publish;
        }

        public String getQuote_count() {
            return quote_count;
        }

        public void setQuote_count(String quote_count) {
            this.quote_count = quote_count;
        }

        public String getSupplier_status() {
            return supplier_status;
        }

        public void setSupplier_status(String supplier_status) {
            this.supplier_status = supplier_status;
        }

        public String getBuyer_status() {
            return buyer_status;
        }

        public void setBuyer_status(String buyer_status) {
            this.buyer_status = buyer_status;
        }

        public boolean isCollection() {
            return !"0".equals(is_collectionis) ? true : false;
        }

        public String getIs_collectionis() {
            return is_collectionis;
        }

        public void setIs_collectionis(String is_collectionis) {
            this.is_collectionis = is_collectionis;
        }

        public List<QuoteEntity> getQuote() {
            return quote;
        }

        public void setQuote(List<QuoteEntity> quote) {
            this.quote = quote;
        }

        public static class DealEntity {
            /**
             * purchase_cout : 3
             * publish_count : 0
             */

            private String purchase_cout;
            private String publish_count;

            public String getPurchase_cout() {
                return purchase_cout;
            }

            public void setPurchase_cout(String purchase_cout) {
                this.purchase_cout = purchase_cout;
            }

            public String getPublish_count() {
                return publish_count;
            }

            public void setPublish_count(String publish_count) {
                this.publish_count = publish_count;
            }
        }

        public static class UserInfoEntity {
            /**
             * uid : 1
             * country : 86
             * mobile : 18634680997
             * nickname : mustang
             * password : 976ffd1c04d75e5e17ad5e95db77384a
             * salt : cc9f09
             * sex : 1
             * avatar : http://face.com/image/avatar/201704/06/000537584477.png
             * jifen : 0
             * groupid : 1
             * area_id : 0
             * create_time : 2017-03-15 14:40:28
             * update_time : 2017-04-06 13:13:48
             * status : 1
             * company : 未填写公司名称
             */

            private String uid;
            private String country;
            private String mobile;
            private String nickname;
            private String password;
            private String salt;
            private String sex;
            private String avatar;
            private String jifen;
            private String groupid;
            private String area_id;
            private String create_time;
            private String update_time;
            @SerializedName("status")
            private String statusX;
            private String company;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getPassword() {
                return password;
            }

            public void setPassword(String password) {
                this.password = password;
            }

            public String getSalt() {
                return salt;
            }

            public void setSalt(String salt) {
                this.salt = salt;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getJifen() {
                return jifen;
            }

            public void setJifen(String jifen) {
                this.jifen = jifen;
            }

            public String getGroupid() {
                return groupid;
            }

            public void setGroupid(String groupid) {
                this.groupid = groupid;
            }

            public String getArea_id() {
                return area_id;
            }

            public void setArea_id(String area_id) {
                this.area_id = area_id;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public String getUpdate_time() {
                return update_time;
            }

            public void setUpdate_time(String update_time) {
                this.update_time = update_time;
            }

            public String getStatusX() {
                return statusX;
            }

            public void setStatusX(String statusX) {
                this.statusX = statusX;
            }

            public String getCompany() {
                return company;
            }

            public void setCompany(String company) {
                this.company = company;
            }
        }

        public static class PublishEntity implements Serializable {
            /**
             * id : 3
             * title : 采购标题
             * num : 2
             * price : 2.00
             * city : 采购所在地
             * invoice : 1
             * anonymous : 1
             * content : 更多要求
             * pic : http://face.com/image/hongjiu/201708/04/231737425948.png,http://face.com/image/hongjiu/201708/04/231737604010.png
             * uid : 1
             * date : 2017-08-04 23:17:37.000000
             * status : 5
             * remain : -5天-24小时-34分
             * remain_before : 11天23小时34分
             */

            private String vendorName;//商家名称
            private String realName;//真实姓名
            private String idNumber;//身份证号
            private String licenseNumber;//营业执照号
            private String supplierType;//业务类型
            private String id;
            private String title;
            private String shareUrl;
            private String num;
            private String price;
            private String city;
            private String invoice;
            private String anonymous;
            private String content;
            private String pic;
            private String uid;
            private String date;
            @SerializedName("status")
            private String statusX;
            private String remain;
            private String remain_before;

            public String getShareUrl() {
                return shareUrl;
            }

            public void setShareUrl(String shareUrl) {
                this.shareUrl = shareUrl;
            }

            public String getVendorName() {
                return vendorName;
            }

            public void setVendorName(String vendorName) {
                this.vendorName = vendorName;
            }

            public String getRealName() {
                return realName;
            }

            public void setRealName(String realName) {
                this.realName = realName;
            }

            public String getIdNumber() {
                return idNumber;
            }

            public void setIdNumber(String idNumber) {
                this.idNumber = idNumber;
            }

            public String getLicenseNumber() {
                return licenseNumber;
            }

            public void setLicenseNumber(String licenseNumber) {
                this.licenseNumber = licenseNumber;
            }

            public String getSupplierType() {
                return supplierType;
            }

            public void setSupplierType(String supplierType) {
                this.supplierType = supplierType;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getNum() {
                return num;
            }

            public void setNum(String num) {
                this.num = num;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getInvoice() {
                return invoice;
            }

            public void setInvoice(String invoice) {
                this.invoice = invoice;
            }

            public String getAnonymous() {
                return anonymous;
            }

            public void setAnonymous(String anonymous) {
                this.anonymous = anonymous;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getStatusX() {
                return statusX;
            }

            public void setStatusX(String statusX) {
                this.statusX = statusX;
            }

            public String getRemain() {
                return remain;
            }

            public void setRemain(String remain) {
                this.remain = remain;
            }

            public String getRemain_before() {
                return remain_before;
            }

            public void setRemain_before(String remain_before) {
                this.remain_before = remain_before;
            }
        }

        public static class QuoteEntity {
            /**
             * id : 2
             * pic : http://face.com/image/hongjiu/201708/06/215352681206.png,http://face.com/image/hongjiu/201708/06/215352217635.png
             * price : 3.00
             * msg : baojia
             * city : 采购所在地11
             * publish_id : 3
             * date : 2017-08-10 18:07:14.000000
             * uid : 1
             * status : 1
             * avatar : http://face.com/image/avatar/201704/06/000537584477.png
             * nickname : mustang
             * mobile : 18634680997
             */

            private String id;
            private String pic;
            private String price;
            @SerializedName("msg")
            private String msgX;
            private String city;
            private String publish_id;
            private String date;
            private String uid;
            @SerializedName("status")
            private String statusX;
            private String avatar;
            private String nickname;
            private String mobile;
            private int supplier_status;

            public int getSupplier_status() {
                return supplier_status;
            }

            public void setSupplier_status(int supplier_status) {
                this.supplier_status = supplier_status;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getPic() {
                return pic;
            }

            public void setPic(String pic) {
                this.pic = pic;
            }

            public String getPrice() {
                return price;
            }

            public void setPrice(String price) {
                this.price = price;
            }

            public String getMsgX() {
                return msgX;
            }

            public void setMsgX(String msgX) {
                this.msgX = msgX;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getPublish_id() {
                return publish_id;
            }

            public void setPublish_id(String publish_id) {
                this.publish_id = publish_id;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getStatusX() {
                return statusX;
            }

            public void setStatusX(String statusX) {
                this.statusX = statusX;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }
        }
    }
}
